package com.study.microservice.controller;

import com.study.microservice.service1.api.ConsumerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MI
 * @version 1.0
 * @date 2020/10/17 21:47
 */
@RestController
public class ApplicationController {

    @org.apache.dubbo.config.annotation.Reference
    ConsumerService consumerService;

    @GetMapping("service")
    public String serice() {
        return "test|" + consumerService.service();
    }

}
